<!-- <?php   p($attrValueDate); ?>  -->
</style>
<table class="table2">
	<tr>
		<td class="w100" style="font-size:20px">属性值</td>
		 <td >
		 	<ul id="ShowType">
		 		<?php $index=0?>
		 		<?php foreach($attrValueDate as $attrValue ):?>
		 		      <?php $index++?>
		 		      <?php if($index==1){?>
                                                  <li>
		 			<input type="text" name="av_name[]" value="<?php echo $attrValue['av_name'] ?>"  class="w200">
		 			<span class="add1" style="color:red;font-weight:700;cursor:pointer">增加(+)</span>
		 		           </li>
                                                   
		 		    <?php  }else{ ?>
	                                       <li>
		 			<input type="text" name="av_name[]" value="<?php echo $attrValue['av_name'] ?>"  class="w200">
		 			<span style="color:red;font-weight:700;cursor:pointer" onclick="removeFiled(this)">删减(-)</span>
		 		       </li>
		 		  <?php } ?>
		 	          <?php endforeach ?>
		 	</ul>
		 </td>
	</tr>
</table>
<script>
	$(".add1").click(function(){
		var html='<li><input type="text" name="av_name[]"  class="w200"><span id="add" style="color:red;font-weight:700;cursor:pointer"  onclick="removeFiled(this)">删减-</span></li>';
                       $("#ShowType").append(html);
	})
//移除元素
	function removeFiled(obj){
		$(obj).click(function(){
			$(obj).parent().remove();
		})
	}
</script>